mvc model validation for decimal type

120

mvc model validation for decimal type -

[RegularExpression(@"^\d+\.\d{0,2}$")]
[Range(0, 9999999999999999.99)]
public decimal Property { get; set; }

Comments

Submit
0 Comments